<?php
namespace App\Action\Service;

use Forxx\ForxxWebService;
use \Lavender\Filter;

class test_service extends ForxxWebService
{
    //protected $without_auth_actions = ['*'];
    
    public function list_action()
    {
        $params = $this->parameters([                
                    'page' => Filter::T_INT,
                    'size' => Filter::T_INT,
                ],self::M_POST,true);
        $data = [];
        return $this->success('ok',$data);
    }
    
    public function detail_action()
    {
        $params = $this->parameters([
                'id' => Filter::T_INT,
                ],self::M_GET,true);
        $data = [];
        return $this->success('ok',$data);
    }
    
    public function create_action()
    {
        $params = $this->parameters([
                'col1' => Filter::T_STRING,
                'col2' => Filter::T_STRING,
                ],self::M_POST,true);
        $data = [];
        return $this->success('ok',$data);
    }
    
    public function update_action()
    {
        $params = $this->parameters([
                'col1' => Filter::T_STRING,
                'col2' => Filter::T_STRING,
                ],self::M_POST,true);
        $data = [];
        return $this->success('ok',$data);
    }
    
    public function delete_action()
    {
         $params = $this->parameters([
                'id' => Filter::T_INT,
                ],self::M_GET,true);
        $data = [];
        return $this->success('ok',$data);
    }
}